package com.u3k.mid;

import android.content.Context;
import com.u3k.app.mid.RegisterListener;
import com.u3k.app.mid.RegisterManager;
import com.u3k.app.mid.utils.net.HttpClient;
import com.u3k.app.mid.utils.net.Request;
import com.u3k.app.mid.utils.statistics.StatisticsManager;

public class m extends Thread {
    final /* synthetic */ Context a;
    final /* synthetic */ RegisterListener b;
    final /* synthetic */ RegisterManager c;

    public m(RegisterManager registerManager, Context context, RegisterListener registerListener) {
        this.c = registerManager;
        this.a = context;
        this.b = registerListener;
    }

    public void run() {
        this.c.mRegistering = true;
        try {
            String access$000 = this.c.getJsonParams(this.a);
            HttpClient httpClient = new HttpClient();
            Request addJson = new Request().url(am.a(this.c.mContext) + "/api/unify/cmn/v1/register").defaultHeader().post().addJson(access$000);
            LogUtils.LogError(RegisterManager.TAG, "register   params=" + access$000);
            httpClient.request(addJson, new n(this));
        } catch (Exception e) {
            this.c.mRegistering = false;
            StatisticsManager.getInstance().logException(ae.a(), e);
        }
    }
}
